package com.demo.jfinal.redis.running;

import org.apache.log4j.Logger;

import com.demo.jfinal.model.ApiOrders;
import com.demo.jfinal.redis.DictConstantKeys;
import com.demo.jfinal.redis.Redis;

/**
 * 用于处理  traffic接收到api的订单，作为订购中订单的队列
 * @author Guoxing
 *
 */
public class ApiOrdersExecutor implements OrderUtils {

	private static Logger logger = Logger.getLogger(ApiOrdersExecutor.class);

	public final static ApiOrdersExecutor service = new ApiOrdersExecutor();

	public static void setOrder(ApiOrders order) {
		
		Redis.use(DictConstantKeys.redis_order_name).rpush("apiOrders", order);
	}

}
